void updateStartMenu(Input input, Gestion jeu)
{
   
    if(input.down == 1)
    {
       
        if(jeu.choice == 0)
            jeu.choice++;

        input.down = 0;
    }

    if(input.up == 1)
    {
        if(jeu.choice == 1)
            jeu.choice--;

        input.up = 0;
    }

    if(input.enter)
    {
         if(jeu.choice == 0)
        {
            //jeu.level = 1;
            initializePlayer();
            //changeLevel();
            jeu.vies = 3;
            jeu.etoiles = 0;
            jeu.onMenu = 0;
        }
    
        else if(jeu.choice == 1)
        {
            exit(0);
        }
         input.enter = 0;
    }
   

}        

void drawStartMenu(void)
{

    char text[200];
     TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
    sprintf(text, "PROJECT ES-45");

    drawString(text, 110, 50, font);

    if(jeu.choice != 0)
    {
        TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
        sprintf(text, "START");

        drawString(text, 273, 200, font);
    }
    if(jeu.choice != 1)
    {
        TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
        sprintf(text, "QUIT");
        drawString(text, 273, 280, font);
    }

    if(jeu.choice == 0)
    {
        TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
        sprintf(text, "> START");
        drawString(text, 250, 200, font);
    }
    else if(jeu.choice == 1)
    {
        TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
        sprintf(text, "> QUIT");
        drawString(text, 250, 280, font);
    }
TTF_Font *font = loadFont("Shut'Em Down.ttf",50);
    sprintf(text, "PROJECT ES-45 ");
    drawString(text, 120, 420, font);


}
void updatePauseMenu(void)
{
    
    if(input.enter)
    {
        jeu.onMenu = 0;
        input.enter = 0;
    }

}


void drawPauseMenu(void)
{
     char text[200];   

    sprintf(text, "** PAUSE **");
    drawString(text, 240, 240, font);

}